package cn.aishua.ui.myKaka;

import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MyKakaActivityGroup
    extends ActivityGroup
{
    public static ActivityGroup group;
    
    public static String ID_LOGIN="LoginActivity";
    public static String ID_REGISTER="RegisterActivity";
    public static String ID_USER_INFO="UserInfoActivity";
    public static String ID_COMPL_USER_INFO="ComplUserInfoActivity";
    public static String ID_RESET_PWD="ResetPwdActivity";
    public static String ID_MY_BANK_CARD="MyBankCardActivity";
    public static String ID_MY_CREDIT="MyCreditActivity";
    public static String ID_CREDIT_EXCHANGE="CreditExchangeActivity";
    
    @Override
    protected void onCreate( Bundle savedInstanceState )
    {
        super.onCreate( savedInstanceState );
        
        // convert activity (login) into view
        Intent intent = new Intent(this, LoginActivity.class);
        intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
        View view = getLocalActivityManager().startActivity( ID_LOGIN, intent ).getDecorView();
        setContentView( view );
        
        group = this;
    }
    
    @Override
    public void onBackPressed()
    {
        getCurrentActivity().onBackPressed();
    }
}
